<extend name="base"/>
<block name="body">
<script language="javascript">$(document).ready(wechat_obj.material_multi_init);</script>
<div id="material" class="r_con_wrap">
      <form id="material_form" method="post" action="{:U('Material/newsSave')}">
          <div class="m_lefter multi">
               <div class="time">{$createtime|date="Y-m-d",###}</div>
               <!-- 第一条  开始 -->
               <div class="first" id="multi_msg_0">
                   <div class="info">
                       <div class="img"><eq name="update" value="1"><img src="{$firstNews.ImgPath}"><else/>封面图片</eq></div>
                       <div class="title"><eq name="update" value="1">{$firstNews.Title}<else/>消息标题</eq></div>
                   </div>
                   <div class="control">
                       <a href="#mod"><img src="__PUBLIC__/Member/images/ico/mod.gif" /></a>
                   </div>
                   <input type="hidden" name="Title[]" value="{$firstNews.Title}" />
                   <input type="hidden" name="Url[]" value="{$firstNews.Url}" />
                   <input type="hidden" name="ImgPath[]" value="{$firstNews.ImgPath}" />
               </div>
                    <!-- 第一条  结束 -->
                    <!-- 列表  开始 -->
              <eq name="update" value="0">
                  <div class="list" id="multi_msg_1">
                  <div class="info">
                      <div class="title"><eq name="update" value="1">{$v.Title}<else/>标题</eq></div>
                      <div class="img"><eq name="update" value="1"><img src="{$v.ImgPath}"><else/>缩略图</eq></div>
                  </div>
                  <div class="control">
                      <a href="#mod"><img src="__PUBLIC__/Member/images/ico/mod.gif" /></a>
                      <a href="#del"><img src="__PUBLIC__/Member/images/ico/del.gif" /></a>
                  </div>
                  <input type="hidden" name="Title[]" value="{$v.Title}" />
                  <input type="hidden" name="Url[]" value="{$v.Url}" />
                  <input type="hidden" name="ImgPath[]" value="{$v.ImgPath}" />
              	  </div>
              </eq>
              <volist name="othersNews" id="v">
              <div class="list" id="multi_msg_{$i}">
                  <div class="info">
                      <div class="title"><eq name="update" value="1">{$v.Title}<else/>标题</eq></div>
                      <div class="img"><eq name="update" value="1"><img src="{$v.ImgPath}"><else/>缩略图</eq></div>
                  </div>
                  <div class="control">
                      <a href="#mod"><img src="__PUBLIC__/Member/images/ico/mod.gif" /></a>
                      <a href="#del"><img src="__PUBLIC__/Member/images/ico/del.gif" /></a>
                  </div>
                  <input type="hidden" name="Title[]" value="{$v.Title}" />
                  <input type="hidden" name="Url[]" value="{$v.Url}" />
                  <input type="hidden" name="ImgPath[]" value="{$v.ImgPath}" />
              </div>
              </volist>
                    <!-- 列表  结束 -->
              <div class="add"><a href="#add"><img src="__PUBLIC__/Member/images/ico/add.gif" align="absmiddle" /> 增加一条</a></div>
		</div>
        <div class="m_righter">
            <div class="mod_form">
                <div class="jt"><img src="__PUBLIC__/Member/images/material/jt.gif" /></div>
                <div class="m_form">
                    <span class="fc_red">*</span> 标题<br />
                    <div class="input"><input name="inputTitle" value="" type="text" /></div>
                    <div class="blank9"></div>
                    <span class="fc_red">*</span> 封面图片 <span class="tips">大图尺寸建议：<span class="big_img_size_tips">640*360px</span></span><br />
                    <div class="blank6"></div>
                    <div><input name="FileUpload" id="MsgFileUpload" type="file" /></div>
                    <div class="blank3"></div>
                    <span class="fc_red">*</span> 链接页面<br />
                    <div class="input">
                        <select name='inputUrl'>
                            <include file="Public/linkurl" />
                        </select>
                    </div>
                </div>
            </div>
        </div>
        <div class="clear"></div>
        <div class="button"><input type="submit" class="btn_green" name="submit_button" value="提交保存" /><a href="{:U('Material/index')}" class="btn_gray">返回</a></div>
        <input type="hidden" name="id" value="{$id}" />
        <input type="hidden" name="msgtype" value="news" />
        <input type="hidden" name="msgtype" value="news" />
    </form>
</div>  

</block>